<?php
if(!defined('BASEPATH')) exit('No direct script access allowed');
require_once("includes/phpExcelReader/Excel/reader.php");

class ExcelReader extends Spreadsheet_Excel_Reader{
        /*
		function createPDF($html, $filename='', $stream=TRUE){
			$this->load_html($html);
			$this->render();
			if ($stream) {
				$this->stream($filename.".pdf");
			} else {
				return $this->output();
			}
		}
        */

          function Reader($ruta){
            $data = new Spreadsheet_Excel_Reader();
            $data->setOutputEncoding('CP1251');
            $data->read($ruta);
            return $data;
        }


}
?>
